package work.zhengyun.demo.pub_sub;

import org.springframework.stereotype.Component;

/**
 * @author zhengyun
 * @date 2019/11/22 16:28
 */
@Component
public class MessageReceiver {
    /**接收消息的方法*/
    public void receiveMessage(String message){
        System.out.println("收到一条消息："+message);
    }

    public void sendUserMessage(String message){
        System.out.println("用户收到一条消息："+message);
    }
}
